// Intersil.h: interface for the Intersil class.
//
//////////////////////////////////////////////////////////////////////

#ifndef INTERSIL_H
#define INTERSIL_H

#include "ifc\Interface.h"
#include "dc\DataContainer.h"
#include <memory>
using namespace std;


class Intersil  
{
public:
	Intersil():ifc(*(new Interface(dc))){;}
	
	virtual ~Intersil();
	auto_ptr<Reply> userRequest (const Request &request);
	void addSystemAccount();
	void delSystemAccount();
	bool isLoggedIn(){return (ifc.getUserPermissionLevel()!=NONE);}
	int getUserPermissionLevel(){return ifc.getUserPermissionLevel();}
	string getLoggedUserId(){return ifc.getLoggedUserId();}
	string getLoggedUserName(){return ifc.getLoggedUserName();}
private:
	DataContainer dc;
	Interface &ifc;
};

#endif INTERSIL_H